package com.yanzhu.service.impl;

import com.yanzhu.service.WalletService;
import com.yanzhu.service.mapper.WalletMapper;
import com.yanzhu.service.model.Wallet;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

/**
 * @Author: 方炎柱
 * @Description:
 * @Date: Created in 14:41 2018/1/19
 * @Modified:
 */
@AllArgsConstructor
@Service
public class WalletServiceImpl implements WalletService {
    private WalletMapper walletMapper;

    @Override
    public int insert(Wallet wallet) {
        return walletMapper.insert(wallet);
    }

    @Override
    public Wallet selectBalanceByUid(long uid) {

        return walletMapper.selectBalanceByUid(uid);
    }
}
